<?php
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class DocarioViewCategories extends JView {
    function display($tpl=null) {
        $model = $this->getModel();
        
        $user = JFactory::getUser();
        $cid = JRequest::getVar('cid');
        if (!$cid) $cid = 0;
        
        $data = $model->getCategories($cid, $user);
        
        $this->assignRef('categories', $data);
    
        parent::display($tpl);
    }
}
